package gapidt;

import java.io.ByteArrayOutputStream;
import java.io.StringWriter;
import java.io.UnsupportedEncodingException;

import org.apache.ws.java2wsdl.Java2WSDL;
import org.apache.ws.java2wsdl.Java2WSDLBuilder;

import edu.stanford.nlp.parser.lexparser.Test;

public class Java2WSDLTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		ByteArrayOutputStream boa = new ByteArrayOutputStream();
		Class<?> cls = TestClass.class;
		Java2WSDLBuilder builder = new Java2WSDLBuilder(boa, cls.getCanonicalName(), cls.getClassLoader());
		try {
			builder.generateWSDL();
			System.out.println(boa.toString("UTF-8"));
		} catch (UnsupportedEncodingException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
